package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Basic_Routing", description = "工艺主表")
@TableName(value = "Basic_Routing")
public class BasicRouting extends FBaseEntity implements Serializable {


    
    @NotBlank(message="[工艺编码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("工艺编码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "code")
    private String code;
    
    @NotNull(message="[物料ID]不能为空")
    @ApiModelProperty("物料ID")
    @TableField(value = "materialId")
    private Long materialId;
    
    @NotNull(message="[状态]不能为空")
    @ApiModelProperty("状态")
    @TableField(value = "status")
    private Long status;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;
    
    @ApiModelProperty("")
    @TableField(value = "routingVersion")
    private Date routingVersion;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("多物料工艺标记（开启标记则对应关系写入关系表）")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "multipleFlag")
    private String multipleFlag;






}

